package sf.model;

public class DBColumnInfo {

	private String code;
	private String label;
	private String type;
	private Class<?> cls;
	private int size;
	private boolean isPrimaryKey;
	private boolean isNullable;

	/**
	 * Informacije o jednoj koloni iz tabele.
	 * 
	 * @param code
	 * @param label
	 * @param type
	 * @param cls
	 * @param size
	 */
	public DBColumnInfo(String code, String label, String type, Class<?> cls,
			int size, boolean isPrimaryKey, boolean isNullable) {
		this.code = code;
		this.label = label;
		this.type = type;
		this.cls = cls;
		this.size = size;
		this.isPrimaryKey = isPrimaryKey;
		this.isNullable = isNullable;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Class<?> getCls() {
		return cls;
	}

	public void setCls(Class<?> cls) {
		this.cls = cls;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public boolean isPrimaryKey() {
		return isPrimaryKey;
	}

	public void setPrimaryKey(boolean isPrimaryKey) {
		this.isPrimaryKey = isPrimaryKey;
	}

	public boolean isNullable() {
		return isNullable;
	}

	public void setNullable(boolean isNullable) {
		this.isNullable = isNullable;
	}
}